import 'package:get/get.dart';

import '../modules/about/about_binding.dart';
import '../modules/about/about_view.dart';
import '../modules/apply/apply_binding.dart';
import '../modules/apply/apply_view.dart';
import '../modules/apply/base_info/base_info_binding.dart';
import '../modules/apply/base_info/base_info_view.dart';
import '../modules/apply/confirm/confirm_binding.dart';
import '../modules/apply/confirm/confirm_view.dart';
import '../modules/apply/face_error/face_error_binding.dart';
import '../modules/apply/face_error/face_error_view.dart';
import '../modules/apply/id_info/id_info_binding.dart';
import '../modules/apply/id_info/id_info_view.dart';
import '../modules/apply/result/result_binding.dart';
import '../modules/apply/result/result_view.dart';
import '../modules/calc/calc_binding.dart';
import '../modules/calc/calc_view.dart';
import '../modules/cancel/cancel_binding.dart';
import '../modules/cancel/cancel_view.dart';
import '../modules/dev_setting/dev_setting_binding.dart';
import '../modules/dev_setting/dev_setting_view.dart';
import '../modules/feedback/feedback_binding.dart';
import '../modules/feedback/feedback_view.dart';
import '../modules/h5/agreement_list/agreement_list_binding.dart';
import '../modules/h5/agreement_list/agreement_list_view.dart';
import '../modules/h5/h5_binding.dart';
import '../modules/h5/h5_view.dart';
import '../modules/hint/hint_binding.dart';
import '../modules/hint/hint_view.dart';
import '../modules/login/login_binding.dart';
import '../modules/login/login_view.dart';
import '../modules/main/main_binding.dart';
import '../modules/main/main_view.dart';
import '../modules/main/product/product_view.dart';
import '../modules/order/add_bank/add_bank_binding.dart';
import '../modules/order/add_bank/add_bank_view.dart';
import '../modules/order/detail/order_detail_binding.dart';
import '../modules/order/detail/order_detail_view.dart';
import '../modules/order/loan/loan_binding.dart';
import '../modules/order/loan/loan_view.dart';
import '../modules/order/order_binding.dart';
import '../modules/order/order_view.dart';
import '../modules/order/repay_plans/repay_plans_binding.dart';
import '../modules/order/repay_plans/repay_plans_view.dart';
import '../modules/splash/splash_binding.dart';
import '../modules/splash/splash_view.dart';

part 'app_routes.dart';

class AppPages {
  AppPages._();

  static const INITIAL = Routes.SPLASH;

  static final routes = [
    GetPage(
      name: Routes.SPLASH,
      page: () => const SplashView(),
      binding: SplashBinding(),
    ),
    GetPage(
      name: Routes.LOGIN,
      page: () => const LoginView(),
      binding: LoginBinding(),
    ),
    GetPage(
      name: Routes.H5_WEBVIEW,
      page: () => const H5View(),
      binding: H5Binding(),
    ),
    GetPage(
      name: Routes.MAIN,
      page: () => const MainView(),
      binding: MainBinding(),
    ),
    GetPage(
      name: Routes.ABOUT,
      page: () => const AboutView(),
      binding: AboutBinding(),
    ),
    GetPage(
      name: Routes.FEEDBACK,
      page: () => const FeedbackView(),
      binding: FeedbackBinding(),
    ),
    GetPage(
      name: Routes.HINT,
      page: () => const HintView(),
      binding: HintBinding(),
    ),
    GetPage(
      name: Routes.CANCEL,
      page: () => const CancelView(),
      binding: CancelBinding(),
    ),
    GetPage(
      name: Routes.APPLY,
      page: () => const ApplyView(),
      binding: ApplyBinding(),
    ),
    GetPage(
      name: Routes.CONFIRM,
      page: () => const ConfirmView(),
      binding: ConfirmBinding(),
    ),
    GetPage(
      name: Routes.RESULT,
      page: () => const ResultView(),
      binding: ResultBinding(),
    ),
    GetPage(
      name: Routes.ORDER,
      page: () => const OrderView(),
      binding: OrderBinding(),
    ),
    GetPage(
      name: Routes.ORDER_DETAIL,
      page: () => const OrderDetailView(),
      binding: OrderDetailBinding(),
    ),
    GetPage(
      // 产品列表
      name: Routes.PRODUCT_LIST,
      page: () => const ProductView(),
      binding: MainBinding(),
    ),
    GetPage(
      name: Routes.LOAN,
      page: () => const LoanView(),
      binding: LoanBinding(),
    ),
    GetPage(
      name: Routes.ADD_BANK,
      page: () => const AddBankView(),
      binding: AddBankBinding(),
    ),
    GetPage(
      name: Routes.AGREEMENT_LIST,
      page: () => const AgreementListView(),
      binding: AgreementListBinding(),
    ),
    GetPage(
      name: Routes.REPAY_PLANS,
      page: () => const RepayPlansView(),
      binding: RepayPlansBinding(),
    ),
    GetPage(
      name: Routes.BASE_INFO,
      page: () => const BaseInfoView(),
      binding: BaseInfoBinding(),
    ),
    GetPage(
      name: Routes.FACE_ERROR,
      page: () => const FaceErrorView(),
      binding: FaceErrorBinding(),
    ),
    GetPage(
      name: Routes.PRIVATE_SETTING,
      page: () => const DevSettingView(),
      binding: DevSettingBinding(),
    ),
    GetPage(
      name: Routes.ID_INFO,
      page: () => const IdInfoView(),
      binding: IdInfoBinding(),
    ),
    GetPage(
      name: Routes.CALC,
      page: () => const CalcView(),
      binding: CalcBinding(),
    ),
  ];
}
